import { request } from './request'

// 获取详情
export const getDetail = params => {
  return request({
    url: '/app/qryAppDetail',
    params
  })
}

// 查询关注应用
export const getIsFollowing = params => {
  return request({
    url: '/atten/checkAttention',
    params
  })
}

// 取消关注
export const updateFollow = params => {
  return request({
    url: '/atten/updateAttention',
    params
  })
}

// 获取评论
export const getComment = params => {
  return request({
    url: '/app/qryComment',
    params
  })
}

// 发表评论
export const addComment = params => {
  return request({
    url: '/app/addComment',
    params
  })
}
